﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


public static class StringArrayExtension
{
    public static bool IsNullOrEmpty(this string[] arrContent)
    {
        return (arrContent == null || arrContent.Length == 0);
    }
    public static string ToString(this string[] arrContent, string separation)
    {
        string rs = "";
        if (!arrContent.IsNullOrEmpty()&& !string.IsNullOrEmpty(separation))
        {
            foreach (string item in arrContent)
            {
                rs += string.Format("{0}{1}", item, separation);
            }
            rs = rs.Substring(0, rs.Length - separation.Length);
        }
        return rs;
    }
}
